//             在html头部位置添加：
//
//             <header id="header"></header>
//             <script src="js/head.js"></script>
//
//
$.ajax({
    url: "header.html",
    type: "get",
    success: (data) => {
        $('#header').html(data);
        setTimeout(()=>{
            let arrUrl=location.pathname.split("/");
            arrUrl.forEach((data)=>{
                let rge=/.html$/,
                    index;
                if(rge.test(data)){
                    switch (data){
                        case 'index.html':index=0;
                            break;
                        case 'cpzs.html':index=1;
                            break;
                        case 'design.html':index=2;
                            break;
                        case 'serve.html':index=3;
                            break;
                        case 'hydt.html':index=4;
                            break;
                        case 'about.html':index=5;
                            break;
                    }
                    $(".nav-items").eq(index).css({
                        "border-bottom":"1px solid #eb8c27",
                    });
                }
            });
        });
    }
});
